From 53acea5138c4a0e42c2853eaa6df8c4945617e0a Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Fri, 14 May 2004 22:09:33 +0000 Subject: [PATCH] don't create a pre for a whitespace-only line --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index 0fcf83f402..e292278267 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1256,7 +1256,7 @@ class Parser $inBlockElem = true; } } else if ( !$inBlockElem ) { - if ( " " == $t{0} ) { + if ( " " == $t{0} and trim($t) != '' ) { // pre if ($this->mLastSection != 'pre') { $paragraphStack = false; -- 2.20.1